class CreateProblems < ActiveRecord::Migration
  def self.up
    create_table :problems do |t|
        t.column :name, :string, :limit => 80
        t.column :input, :string
        t.column :output, :sting
    end

    for i in (0..5)
        problem = Problem.new()
        problem.name = "problem_"+i.to_s()
        problem.save()
    end
  end

  def self.down
    drop_table :problems
  end
end
